package org.example.demo1.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.example.demo1.common.ResponseData;
import org.example.demo1.domain.GoodsInfo;

import java.util.List;

@Mapper
public interface GoodsMapper {
    int insertGoods(GoodsInfo goodsInfo);

    GoodsInfo getGoodsByName(String goodsName);

    void updateGoods(GoodsInfo goodsInfo);

    int deleteGoodsByGoodsId(Integer goodsId);

    ResponseData<List<GoodsInfo>> selectByGoodsNameLike(String s);

    ResponseData<List<GoodsInfo>> selectByGoodsId(Integer goodsId);

    ResponseData<List<GoodsInfo>> GoodsInfoPage(int pageNum, int pageSize, String classifyId);
}
